a = []
for i in range(0, 20):
    for j in range(0, 21):
        a.append((i, j))
        
line = set()
for i in a:
    x1, y1 = i[0], i[1]
    for j in a:
        x2, y2 = j[0], j[1]
        if x1 == x2:
            continue
        k = (y2 - y1) / (x2 - x1)
        b=(x2 * y1 - x1 * y2)/(x2 - x1)
        line.add((k, b))
print(len(line) + 20)
       
